#ifndef SNNegImageReader_h__
#define SNNegImageReader_h__
//-------------------------------------------------------------
#include <string>
#include <opencv2/core/core.hpp>
#include <QString>
#include <QVector>
//-------------------------------------------------------------

class SNNegImageReader
{
public:
	SNNegImageReader();
	~SNNegImageReader();

	bool Create(const QString filename, cv::Size win_size);
	bool Get(cv::Mat& img);
	bool NextImage();
private:
	cv::Mat     Src;
	cv::Mat     Img;
	QVector<QString> Filenames;
	cv::Point   Offset;
	cv::Point   Point;
	float   Scale;
	float   ScaleFactor;
	float   StepFactor;
	size_t  Last;
	size_t  Round;
	cv::Size    WinSize;
};
//-------------------------------------------------------------
#endif // SNNegImageReader_h__
